Creating a Flash Element
Andreas Heim
Table of Contents
- Introduction
- Preparing a Flash Component for a life as a Flash Element
- Creating the Extension
Macromedia is working hard to make you more productive. A big part of this effort is increasing the integration between products of the Macromedia MX family step by step. If you have used Studio MX 2004, or even just Macromedia Flash MX 2004 and Dreamweaver MX 2004, you already know about the interface integration. This article is about a brand new feature called Flash elements, which strengthens the content integration between the two products.
What is a Flash element? It is a Flash component that you can directly insert and customize in a page you are creating with Dreamweaver. While you have been able to insert a Macromedia Flash movie in Dreamweaver for a long time, you can now configure the Flash element directly within Dreamweaver using the Tag inspector. There is no need to go back to Flash to change the configuration of the Flash movie or mess with the source code to pass some extra variables to Flash. This tight integration empowers Dreamweaver users to modify Flash elements, which improves workflow and reduces the time spent passing the elements back and forth between the Dreamweaver and Flash developer for simple edits.
The new Flash elements also make it much easier to create reusable Flash content for your own use as well as for distribution as an extension. In this article, you will learn how to modify a Flash MX 2004 component to become a Flash element, and how to package it as an extension to install with Dreamweaver MX 2004.
You have probably heard about the patent lawsuit between Eolas and Microsoft, and the changes that Microsoft may be forced to make to the Internet Explorer browser. At the time of writing of this article, things are still in flux and Dreamweaver creates HTML output the way things used to be. After integrating a Flash element into your page, I recommend updating the page for deployment the way you should update any other page. You can find out about the techniques for doing so in the Active Content Developer Center.
Requirements
To complete this tutorial you will need to install the following software and files:
Macromedia Flash MX Professional 2004
Macromedia Extension Manager
(included in the above products)
Note: You can also follow this tutorial with Flash MX 2004 Standard version. However, you won’t have the ability to edit the class files with the built in script editor; you will need to use an external text editor.
Tutorials and sample files:
flash_elements_sample.zip (166K
ZIP)
These files contain the FooterNav component created in the article Building the FooterNav Component. You will use the sample component to create a Flash element in this article. If you are interested in learning the entire process of creating a Flash component, modifying that component as a Flash Element, and packaging it as a Dreamweaver extension, read the article, Building the FooterNav Component prior to completing this article.